<?php

$dbhost = '172.18.0.4';
$dbdatabase = 'app.test';
$username = 'root';
$userpass = 'root';

$dsn = 'mysql:host=' . $dbhost . ';dbname=' . $dbdatabase . ';';
$dbh = new PDO($dsn, $username, $userpass, [PDO::ATTR_PERSISTENT => true]);
$stmt = $dbh->query('SELECT * FROM test');
$row = $stmt->fetch();

$dbh = null; // close connect

sleep(5);

var_dump($row);
